package com.itheima.article.feign;

import com.itheima.article.dto.ArticleInfoDto;
import com.itheima.article.pojo.ApArticle;
import com.itheima.common.pojo.Result;
import com.itheima.core.feign.CoreFeign;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @Author：shenkunlin
 * @date： 2021/8/26 14:49
 * @Description：
 ***/
@FeignClient(value = "leadnews-article",path = "/apArticle")
public interface ApArticleFeign extends CoreFeign<ApArticle> {

    /***
     * 增加
     *  1：ApArticle
     *  2：ApArticleContent
     *  3：APAritcleConfig
     */
    @PostMapping(value = "/articleInfo/save")
    Result saveArticle(@RequestBody ArticleInfoDto dto);


}
